package com.bjc.principle.decorator.demo2;

import com.bjc.principle.decorator.FlyCar;

/**
 * @program: DesignPattern
 * @description: 装饰模式
 * @author: bjc
 * @create: 2020-12-30 18:23
 */
public class MainClass {

    public static void main(String[] args) {
        Car flyCar = new RunCar();
        FlayCarDecorator carDecorator = new FlayCarDecorator(flyCar);
        carDecorator.show();
    }
}
